axios
.get("/person/api/name")
.then((res) => res.data.results)
.then(person => person.map(i => {
  return {
    "label": i.name,
    "value": i.id
  }
}))
.then(person => state.主持人Options = person)

watch(
() => state.formData.主持人, (newData, oldData) => {
  axios
    .get("/person/api/rank_id", { params: { id: newData } })
    .then((res) => res.data.results)
    .then(
      person => {
        axios
          .get("/rank/api/name", { params: { id: person[0].rank_id } })
          .then((res) => res.data.results)
          .then(rank => state.formData.职务 = rank[0].name)
      }
    )
}
)

axios
.get("/issue/api/name")
.then((res) => res.data.results)
.then(issue => issue.map(i => {
  return {
    "label": i.name,
    "value": i.id
  }
}))
.then(issue => state.议题名称Options = issue)



//出席领导
axios.get("/person/api/name", { params: { role: "领导" } })
.then(res => res.data.results)
.then(person => person.map(i => {
  return {
    "label": i.name,
    "value": i.id
  }
}))
.then(person => state.出席领导Options = person)



//列席领导
axios.get("/person/api/name", { params: { role: "领导" } })
.then(res => res.data.results)
.then(person => person.map(i => {
  return {
    "label": i.name,
    "value": i.id
  }
}))
.then(person => state.列席领导Options = person)


//出席单位
axios
.get("/danwei/api/name")
.then((res) => res.data.results)
.then((danwei) => danwei.map(i => {
  return {
    "label": i.name,
    "value": i.id
  }
}))
.then(danwei => { state.出席单位Options = danwei; })